package com.zhuss.outer.db.dao.ext;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.vo.outer.outer.DetailOuterTopicVo;
import com.zhuss.outer.db.dao.gen.OuterTopicMapper;
import com.zhuss.outer.db.entity.OuterTopic;

@Mapper
public interface OuterTopicDao extends OuterTopicMapper {
	
	void create(OuterTopic record);
	
	int delete(OuterTopic record);
	
	int deleteByParent(OuterTopic record);
	
	void deleteBatch(@Param("outerTopicIdList") List<Long> outerTopicIdList, @Param("deleted") Integer deleted, @Param("modifierId") Long modifierId,
			@Param("modifier") String modifier, @Param("modifyTime") Date modifyTime);
	
	void deleteByParentBatch(@Param("outerTopicIdList") List<Long> outerTopicIdList, @Param("deleted") Integer deleted, @Param("modifierId") Long modifierId,
			@Param("modifier") String modifier, @Param("modifyTime") Date modifyTime);
	
	List<OuterTopic> listAll(@Param("area") Integer area, @Param("outerId") Long outerId);
	
	DetailOuterTopicVo detail(@Param("outerTopicId") Long outerTopicId);
	
	List<Long> listSon(@Param("outerTopicIdList") List<Long> outerTopicIdList);

	List<DetailOuterTopicVo> listTopic(@Param("outerId") Long outerId, @Param("parent") Long parent);

    
}